//
//  SelectedMonthCell.m
//  PropertyMananger
//
//  Created by bh on 17/1/16.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "SelectedMonthCell.h"

@implementation SelectedMonthCell


- (instancetype)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if (self) {
        
        self.bgView = [[UIView  alloc]init];
        [self.contentView addSubview:self.bgView];
       // self.bgView.backgroundColor = BHRandColor;
        
        [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self).with.offset(0);
            make.top.equalTo(self).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(45, 45));
        }];
        
        self.monthLabel = [[UILabel alloc]init];
        [self.bgView addSubview:self.monthLabel];
        
        self.monthLabel.textAlignment = NSTextAlignmentCenter;
        self.monthLabel.textColor = BHColor(51, 51, 51);
        self.monthLabel.font = BHFont(13);
        
        self.monthLabel.layer.cornerRadius = 17;
        self.monthLabel.layer.masksToBounds = YES;
        
        [self.monthLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.bgView).with.offset(0);
            make.centerY.equalTo(self.bgView).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(35, 35));
            
        }];
    }
    return self;
}
@end
